﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;

namespace MainFrame
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool isOnly = false;
            Mutex onlyOne = new Mutex(true, Application.ProductName, out isOnly);
            if (isOnly)
            {
                Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
          // Application.Run(new FormLogin());
              Application.Run(new MainFormWG());
            }
            else
            {
                MessageBox.Show("软件已打开，请勿重复打开！", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                Application.Exit();
            }
        }
    }
}
